import request from '@/utils/request'

export default {
  //获取角色列表
  reqGetRoleList({ page, limit, roleName }) {
    return request({
      url: `/admin/acl/role/${page}/${limit}`,
      methods: 'get',
      params: {
        roleName
      }
    })
  },

  //新增角色
  reqSaveRole(roleName) {
    return request({
      url: `/admin/acl/role/save`,
      methods: 'post',
      data: {
        roleName
      }
    })
  }
}
